package cn.zooz.admin.config.shiro;

import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.spring.LifecycleBeanPostProcessor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Bradish7Y on 2017/9/16.
 * 为什么没有配置在ShiroConfig？
 * 不能使用@Value读取属性
 */
@Configuration
@Slf4j
public class BeanPostConfig {
    @Bean(name = "lifecycleBeanPostProcessor")
    public LifecycleBeanPostProcessor lifecycleBeanPostProcessor() {
        log.info("load lifecycleBeanPostProcessor.....");

        return new LifecycleBeanPostProcessor();
    }
}
